﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AccordingToProblemType.aspx.cs" Inherits="WXYW.AccordingToProblemType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    按产品故障类型
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <table border="1" style="border-collapse: collapse">
        <tr>
            <td>
                产品型号
            </td>
            <td>
                <asp:TextBox ID="productTypeTextBox" runat="server"></asp:TextBox>
            </td>
            <td>
                年
            </td>
            <td>
                <asp:DropDownList ID="yearDropDownList" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                月
            </td>
            <td>
                <asp:DropDownList ID="monthDropDownList" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="searchButton" runat="server" Text="查询" OnClick="searchButton_Click" />
            </td>
        </tr>
    </table>
    <asp:Repeater ID="recordsRepeater" runat="server">
        <HeaderTemplate>
            <table width="100%" class="tableList" style="border-color:#888888;border-width:1px">
                <tr style="height: 25px">
                    <th>
                        产品型号
                    </th>
                    <th>
                        维修总次数
                    </th>
                    <th>
                        芯片
                    </th>
                    <th>
                        电源
                    </th>
                    <th>
                        升级软件
                    </th>
                    <th>
                        Retest OK
                    </th>
                    <th>
                        其它
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Eval("ProductType")%>
                </td>
                <td>
                    <%#Eval("RepairTimes")%>
                </td>
                <td>
                    <table width="100%">
                        <tr>
                            <td>
                                A1
                            </td>
                            <td>
                                A2
                            </td>
                            <td>
                                A3
                            </td>
                            <td>
                                A4
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%#Eval("A1") %>
                            </td>
                            <td>
                                <%#Eval("A2") %>
                            </td>
                            <td>
                                <%#Eval("A3") %>
                            </td>
                            <td>
                                <%#Eval("A4") %>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                SUM:
                                <%#Convert.ToInt32(Eval("A1")) + Convert.ToInt32(Eval("A2")) + Convert.ToInt32(Eval("A3")) + Convert.ToInt32(Eval("A4"))%>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <table width="100%">
                        <tr>
                            <td>
                                B1
                            </td>
                            <td>
                                B2
                            </td>
                            <td>
                                B3
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%#Eval("B1") %>
                            </td>
                            <td>
                                <%#Eval("B2") %>
                            </td>
                            <td>
                                <%#Eval("B3") %>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                SUM:
                                <%#Convert.ToInt32(Eval("B1")) + Convert.ToInt32(Eval("B2")) + Convert.ToInt32(Eval("B3"))%>
                                <%--占:<span style="color:Red"><%#Convert.ToInt32((Eval("B1")) + Convert.ToInt32(Eval("B2")) + Convert.ToInt32(Eval("B3"))%></span>--%>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <table width="100%">
                        <tr>
                            <td>
                                C1
                            </td>
                            <td>
                                C2
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%#Eval("C1") %>
                            </td>
                            <td>
                                <%#Eval("C2") %>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                SUM:
                                <%#Convert.ToInt32(Eval("C1")) + Convert.ToInt32(Eval("C2"))%>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <%#Eval("RetestOK")%>
                </td>
                <td>
                    <%#Eval("Other")%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
